﻿using System;
using System.Collections.Generic;
using FL.DBModule;

namespace FL.Bussiness
{
    public class RuleBLL : BaseBussnies
    {
        public RuleBLL()
        {
        }

        public override bool Insert()
        {
            try
            {
                BeforeInsert();
                bool bl = base.Insert();
                if (bl)
                {
                    AfterUpdate();
                }
                return bl;
            }
            catch
            {
                return false;
            }
        }

        /// <summary>
        /// 在插入之前执行
        /// </summary>
        public void BeforeInsert()
        {

        }

        /// <summary>
        /// 在插入之后执行
        /// </summary>
        public void AfterInsert()
        {

        }

        /// <summary>
        /// 在更新之前执行
        /// </summary>
        public void BeforeUpdate()
        {
            
        }

        /// <summary>
        /// 在更新之后执行
        /// </summary>
        public void AfterUpdate()
        {
        }
        

        public RuleBLL(BaseEntity obj)
        {
            
        }
    }
}
